﻿
@{
    ViewBag.Title = "修改头像 TODO";
}
<style>
    img {
        border-radius: 50px;
        -webkit-border-radius: 50px;
        -moz-border-radius: 50px;
        cursor: pointer;
    }
</style>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">设置我的资料</div>
                <div class="layui-card-body" pad15="">
                    @{ if (Session[ZP.Common.ZPCommon.SESSION_Login] != null)
                        {
                            <div class="layui-form" lay-filter="">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">我的角色</label>
                                    <div class="layui-input-inline">
                                        <input type="hidden" name="roleId" value="@(((ZP.DTO.Common.UserLoginDTO)Session[ZP.Common.ZPCommon.SESSION_Login]).roleId)" >
                                        <input type="text" name="roleName" value="@(((ZP.DTO.Common.UserLoginDTO)Session[ZP.Common.ZPCommon.SESSION_Login]).roleName)" readonly="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">当前角色不可更改为其它角色</div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">用户名</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="account" value="@(((ZP.DTO.Common.UserLoginDTO)Session[ZP.Common.ZPCommon.SESSION_Login]).account)" readonly="" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">不可修改。一般用于后台登入名</div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">姓名</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="employeeName" value="@(((ZP.DTO.Common.UserLoginDTO)Session[ZP.Common.ZPCommon.SESSION_Login]).employee.name)" lay-verify="require" autocomplete="off" placeholder="请输入姓名" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">性别</label>
                                    <div class="layui-input-inline">
                                        <input type="radio" name="sex" value="nan" title="男">
                                        <input type="radio" name="sex" value="男" title="男" @(((ZP.DTO.Common.UserLoginDTO)Session[ZP.Common.ZPCommon.SESSION_Login]).employee.sex == 1 ? "checked" : "")>
                                        <input type="radio" name="sex" value="女" title="女" @(((ZP.DTO.Common.UserLoginDTO)Session[ZP.Common.ZPCommon.SESSION_Login]).employee.sex == 0 ? "checked" : "")>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">头像</label>
                                    <div class="layui-input-inline">
                                        <input name="avatar" lay-verify="required" id="LAY_avatarSrc" placeholder="图片地址" value="http://cdn.layui.com/avatar/168.jpg" class="layui-input">
                                    </div>
                                    <div class="layui-input-inline layui-btn-container" style="width: auto;">
                                        <button type="button" class="layui-btn layui-btn-primary" id="LAY_avatarUpload">
                                            <i class="layui-icon"></i>上传图片
                                        </button><input class="layui-upload-file" type="file" accept="" name="file">
                                        <button class="layui-btn layui-btn-primary" layadmin-event="avartatPreview">查看图片</button>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">手机</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="cellphone" value="" lay-verify="phone" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">邮箱</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="email" value="" lay-verify="email" autocomplete="off" class="layui-input">
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                    <div class="layui-input-block">
                                        <button class="layui-btn" lay-submit="" lay-filter="setmyinfo">确认修改</button>
                                        <button type="reset" class="layui-btn layui-btn-primary">重新填写</button>
                                    </div>
                                </div>
                            </div>
                        }}
                </div>
            </div>
        </div>
    </div>
</div>


@*<ul class="layui-tab-title">
        <li class="layui-this">头像上传</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <div class="layui-upload-drag" id="uploadPicture">
                <i class="layui-icon"></i>
                <p>点击上传，或将文件拖拽到此处</p>
                <div class="layui-hide" id="uploadView">
                    <hr>
                    <img src="" alt="上传成功后渲染" style="max-width: 196px">
                </div>
            </div>
            <div id="editorPanelButtons" style="margin-top:20px;display:none;">
                <div class="layui-inline" style="text-align:center;">
                    <a href="javascript:;" class="layui-btn">保 存</a>
                    <a href="javascript:;" class="layui-btn layui-btn-primary">取 消</a>
                </div>
            </div>
        </div>

        <form class="layui-form" action="" id="selectPicture" style="padding-top:50px;">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <div class="layui-anim" data-anim="layui-anim-scale"><img src="~/Content/zp/img/a1.jpg" width="100" height="100"></div>
                </div>
                <div class="layui-inline">
                    <div class="layui-anim" data-anim="layui-anim-scale"><img src="~/Content/zp/img/a2.jpg" width="100" height="100"></div>
                </div>
                <div class="layui-inline">
                    <div class="layui-anim" data-anim="layui-anim-scale"><img src="~/Content/zp/img/a3.jpg" width="100" height="100"></div>
                </div>
                <div class="layui-inline">
                    <div class="layui-anim" data-anim="layui-anim-scale"><img src="~/Content/zp/img/a4.jpg" width="100" height="100"></div>
                </div>
                <div class="layui-inline">
                    <div class="layui-anim" data-anim="layui-anim-scale"><img src="~/Content/zp/img/a5.jpg" width="100" height="100"></div>
                </div>
                <div class="layui-inline">
                    <div class="layui-anim" data-anim="layui-anim-scale"><img src="~/Content/zp/img/a6.jpg" width="100" height="100"></div>
                </div>
                <div class="layui-inline">
                    <div class="layui-anim" data-anim="layui-anim-scale"><img src="~/Content/zp/img/a7.jpg" width="100" height="100"></div>
                </div>
                <div class="layui-inline">
                    <div class="layui-anim" data-anim="layui-anim-scale"><img src="~/Content/zp/img/a8.jpg" width="100" height="100"></div>
                </div>
            </div>
        </form>

    </div>*@

<script src="~/Content/zp/js/FZUser/avatar.js?v=@(ZP.Common.ZPCommon.ZP_Version)"></script>

